import { defineConfig } from 'vite';
import { resolve } from 'path';

import vue from '@vitejs/plugin-vue';

export default defineConfig({
	plugins: [vue()],
	build: {
		rollupOptions: {
			input: {
				// 配置所有页面路径，使得所有页面都会被打包
				main: resolve(__dirname, 'index.html'),
				pageone: resolve(__dirname, 'pageone/index.html'),
				pagetwo: resolve(__dirname, 'pagetwo/index.html')
			}
		}
	}
});